﻿using System.Xml.Serialization;
using System.Diagnostics;
using PrearrangedChaos.AgileZen.Service.Model;

namespace PrearrangedChaos.AgileZen.Service.Rest
{
    /// <remarks/>
    [DebuggerStepThroughAttribute()]
    [XmlTypeAttribute(AnonymousType = true)]
    [XmlRootAttribute(ElementName = "users", Namespace = "", IsNullable = false)]
    [ZenRestRequest("projects/{0}/roles/{1}/members")]
    public partial class RoleMembersCollection : PagingCollection<User>
    {

        private User[] _members;

        /// <remarks/>
        [XmlArrayItemAttribute("user", IsNullable = true, Type = typeof(User))]
        [XmlArray(ElementName = "items")]
        public User[] Items
        {
            get
            {
                return this._members;
            }
            set
            {
                this._members = value;
            }
        }

        public override User[] GetItems()
        {
            return this._members;
        }
    }
}